#include <QCoreApplication>
#include <iostream>
using namespace std;
int main()

{
    int a,b,c;
    cout << "Enter a ";
    cin >> a;
    cout << "Enter b ";
    cin >> b;
    cout << "Enter c ";
    cin >> c;

    if(a>b)
    {
        if(b>c)
            cout << c;
        else
            cout << b;
    }
    else
    {
        if(a < b && a < c)
            cout << a;
    }
    return 0;
}

